<fieldset><legend><strong>New Contact</strong></legend>

<h3 style="background-color:#536A97;color:#FFFFFF;padding:.3em;">Contact For: <%= if ! @person.nil?
						@person.full_name
					 elsif ! @household.nil?
						@household.household_name
					 else
						"Unattributed"
					 end %></h3>
<% @contact_types = ContactType.find(:all) %>
<% @form_id = ContactForm.find(:first).id %>
<p style="border-bottom: solid #999999 2px;padding-bottom: 4px;"><label>Select A Form: </label>
<%= collection_select 'contact_form', 'id', ContactForm.find(:all), 'id', 'name', options = {:prompt => '---select a contact form---'} %>
<span id='progress' style='display:none;'><img src='/images/working.gif'></span>
</p>

<%= observe_field 'contact_form_id',
 				  :url => {:action => 'form_changed'},
				  :update => 'contacts-list',
				  :with => 'id' %>

<% form_tag :action => 'add_contacts', :person_id => @person, :household_id => @household do %>
<div id="contacts-list">
	<%= render :partial => "form" %>
</div>
<div style="background-color:#536A97;color:#FFFFFF;padding:.3em;">
	<div><%= submit_tag 'Create Contacts' %></div>
	
</div>

<% end %>
</fieldset>
<br>